package com.grace.cms.forum.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grace.cms.forum.user.mapper.RecordStatusMapper;

@Service
public class RecordStatusService {
    @Autowired
    private RecordStatusMapper recordStatusMapper;

    public Boolean selectArticleCommentStatus(Long articleId) {
        Boolean result = recordStatusMapper.selectArticleCommentStatus(articleId);
        // 处理可能的null值，确保返回非null的布尔值
        return result != null ? result : false;
    }

}
